package com.kuzlak.cms.module.shop.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kuzlak.cms.bean.MyPage;
import com.kuzlak.cms.module.shop.entity.ShopInfo;
import com.kuzlak.cms.module.shop.entity.ShopInfo;
import com.kuzlak.cms.module.shop.service.ShopInfoService;
import com.kuzlak.cms.module.shop.mapper.ShopInfoMapper;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【shop_info】的数据库操作Service实现
* @createDate 2024-12-15 22:48:56
*/
@Service
public class ShopInfoServiceImpl extends ServiceImpl<ShopInfoMapper, ShopInfo>
    implements ShopInfoService{

    @Override
    public MyPage<ShopInfo> findByPage(int page, int pagesize) {
        LambdaQueryWrapper<ShopInfo> queryWrapper = new LambdaQueryWrapper<>();
        Page<ShopInfo> page0 = new Page<>(page, pagesize);
        IPage<ShopInfo> data = this.getBaseMapper().selectPage(page0, queryWrapper);
        return  MyPage.parsePage(data);
    }
}




